package org.lq.ht.view.dictionary;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTabbedPane;
import javax.swing.JMenuBar;
import javax.swing.JButton;
import javax.swing.JTree;
import javax.swing.JScrollPane;

public class V_dictionary extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					V_dictionary frame = new V_dictionary();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public V_dictionary() {
		setTitle("数据字典");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 606, 522);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(10, 10, 572, 412);
		contentPane.add(tabbedPane);
		
		JPanel panel_1 = new JPanel();
		tabbedPane.addTab("房间类型", null, panel_1, null);
		panel_1.setLayout(new BorderLayout(0, 0));
		
		JTree tree = new JTree();
		panel_1.add(tree, BorderLayout.CENTER);
		
		JPanel panel_2 = new JPanel();
		tabbedPane.addTab("商品类型", null, panel_2, null);
		panel_2.setLayout(new BorderLayout(0, 0));
		
		JTree tree_1 = new JTree();
		panel_2.add(tree_1, BorderLayout.CENTER);
		
		JPanel panel_3 = new JPanel();
		tabbedPane.addTab("会员级别", null, panel_3, null);
		panel_3.setLayout(new BorderLayout(0, 0));
		
		JTree tree_2 = new JTree();
		panel_3.add(tree_2, BorderLayout.CENTER);
		
		JPanel panel_4 = new JPanel();
		tabbedPane.addTab("单位", null, panel_4, null);
		panel_4.setLayout(new BorderLayout(0, 0));
		
		JTree tree_3 = new JTree();
		panel_4.add(tree_3, BorderLayout.CENTER);
		
		JPanel panel = new JPanel();
		panel.setBounds(10, 432, 572, 43);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JButton button = new JButton("新建类别");
		button.setBounds(69, 10, 97, 23);
		panel.add(button);
		
		JButton button_1 = new JButton("重命名");
		button_1.setBounds(244, 10, 97, 23);
		panel.add(button_1);
		
		JButton button_2 = new JButton("删除类别");
		button_2.setBounds(407, 10, 97, 23);
		panel.add(button_2);
	}
}
